<%@ page language="java" import="java.util.*,java.util.Map.Entry,cn.ac.cintcm.dataconverge.dataAnalyze.domain.*,cn.ac.cintcm.dataconverge.util.Constants,com.hs.core.utils.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String imagePath = path + "/index/";
Map orgMap = (Map)request.getAttribute("orgMap");
String year = (String)request.getAttribute("year");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
   <script language="javascript" type="text/javascript" src="<%=path %>/js/My97DatePicker/WdatePicker.js"></script>
	<script language="javascript" src="<%=path %>/index/Scripts/script.js"></script>
	<script language="javascript" src="<%=path %>/js/common.js"></script>
	<link href="<%=path %>/index/Themes/com/style.css" type="text/css" rel="stylesheet"></link> 
	 <script src='<%=basePath%>dwr/engine.js'></script>
     <script src='<%=basePath%>dwr/util.js'></script> 
     <script src='<%=basePath%>dwr/interface/subject.js'></script> 
     <script>
     function yearChange(){
          var year = dwr.util.getValue("year");
          window.location.href = "<%=path%>/analyze.htm?action=statAllView&year="+year;
     }
     //function callbackInfo(message){ 
        //dwr.util.setValue("allView",message); 
     //   document.getElementById("allView").innerHTML="<font color=blue>"+message+"</font>";
   //  }
     </script>

</head>
<body class="idt_body" scroll="yes">
   <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
               <form name="searchform" action = "<%=path%>/subjectAnalyze.htm?action=statByContent" method="post">
    <div class="r_rtm_tb_mg1">
        <div class="r_rtm_tb1">
            <span>
                <img src="<%=path%>/index/Themes/com/idt_tb_pass.gif" />&nbsp;&nbsp;各单位科研项目信息</span>
        </div>
    </div>  
     <table cellspacing="2" cellpadding="0" width="100%" class="idt_item_mg" id="Table2">
        <tr> 
             <td style="font-size: 30px; color: Red; font-weight: bold; text-align: center;"
                                                                height="50px">
               <%=Constants.ACADEMY_NAME %>各单位科研项目信息总览
              </td>
            <td class="fim_l" width="20%">
               <%=Tools.getselectYearStr(10,"yearChange();",year) %></td> 
        </tr> 
    </table> 
            </td>
        </tr>
        </form>
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td class="main_content_l2">
                            &nbsp;
                        </td>
                        <td>
                            <table border="0" cellpadding="1" cellspacing="2" width="100%">
                                <tr style="background-color: #ACDBEB; height: 30px;">
                                    <th>
                                        序号
                                    </th>
                                    <th>
                                        单位名称
                                    </th> 
                                    <th>未审核</th>
                                    <th>审核中</th>
                                    <th>已审核</th> 
                                    <th>已结题</th> 
                                    <th>
                                     <font color=red> 总经费(万元)</font>
                                    </th>
                                </tr>
                                <%if(orgMap.size() !=0 ){
                                	Set orgSet = orgMap.entrySet();
                                	Iterator iter = orgSet.iterator();
                                	int i = 0;
                                	while(iter.hasNext()){
                                		Entry entry = (Entry)iter.next();
                                		StatObj obj = (StatObj)entry.getValue();
                                	    i++;
                                  %> 
                                <tr style="height: 23px; background-color:#D3EDFA;">
                                    <td align="center">
                                        <%=i %>
                                    </td>
                                    <td align="center">
                                        <%=obj.getOrgName() %>
                                    </td>
                                     <td align="center"><%=obj.getCountMap().get(Constants.subject_state_save)==null?"0":obj.getCountMap().get(Constants.subject_state_save) %></td>
                                     <td align="center"><%=obj.getCountMap().get(Constants.subject_state_checked)==null?"0":obj.getCountMap().get(Constants.subject_state_checked) %></td> 
                                     <td align="center"><%=obj.getCountMap().get(Constants.subject_state_researching)==null?"0":obj.getCountMap().get(Constants.subject_state_researching) %></td>
                                     <td align="center"><%=obj.getCountMap().get(Constants.subject_state_ended)==null?"0":obj.getCountMap().get(Constants.subject_state_ended) %></td>
                                    <td align="center">
                                        <%=obj.getOrgSumFund() %>
                                    </td>
                                </tr>   
                                
                                <%}}else{ %>
                                
                                <%} %>
                            </table>
                        </td>
                        <td class="main_content_r2">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr> 
    </table> 
</body>
</html> 
